package com.syn.michat.service;

import com.syn.michat.pojo.Friend;
import com.syn.michat.util.exception.ClientException;

import java.util.List;

public interface FriendsService {
    // 申请好友
    public int request(Friend friend) throws ClientException;

    // 查询所有的好友申请记录
    public List<Friend> queryAllApplyRecords(String userId) throws ClientException;

    // 好友审批
    public void approvalFriend(String userId, String friendId, int isAgree) throws ClientException;

    // 查询所有的好友
    public List<Friend> queryAllFriends(String userId) throws ClientException;

    // 查找好友对应关系
    public Friend findFriend(String userId, String friendId) throws ClientException;

    // 删除好友
    public void deleteFriend(String userId, String friendId) throws ClientException;
}
